<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>User Login</title>
</head>
<body>
	{% if username %}
	<h2>Welcome, {{username}}, <a href="{% url logout %}">Logout</a></h2>
	<li><a href="{% url links %}">导航页</a></li>
	{% else %}
	<h2>登录信息</h2>
	<form action="{{post_path}}" method="post">
		<p><label>用户名:</label><input name="username" type="text" /></p>
		<p><label>密&nbsp;&nbsp;码:</label><input name="password" type="password" /></p>
		<p><input type="submit" value="Login" /></p>
	</form>
	{% endif %}
</body>
</html>